package org.lionel.ioc;

public class IocTest {
    private static JsSampleContainer jsContainer = new JsSampleContainer();

    public static void main(String[] args) {
        // 将类注入容器
        jsContainer.registerBean(OrangeSongJavaClient.class);
        // 初始化注入-扫描引用
        jsContainer.initAutoWired();
        // 容器获取bean
        OrangeSongJavaClient client = jsContainer.getBean(OrangeSongJavaClient.class);
        // 执行
        client.work();
    }
}
